package br.cin.ufpe.in1118.middleware.distribution.services.naming.gui;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;


public class NamingServiceGUI extends JFrame {
	
	private static final long serialVersionUID = 1L;
	private NamingServerMainPainel namingServerMainPainel_IL;

	public NamingServiceGUI() {
		super("Naming Service GUI");
		this.setResizable(false);
		this.pack();
		this.setSize(785, 570);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setLocationRelativeTo(null);
		{
			namingServerMainPainel_IL = new NamingServerMainPainel();
			this.setContentPane(namingServerMainPainel_IL);
			namingServerMainPainel_IL.setPreferredSize(new java.awt.Dimension(820, 548));
		}
		try {
			UIManager.setLookAndFeel(new WindowsLookAndFeel());
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		//JFrame.setDefaultLookAndFeelDecorated(true);
		SwingUtilities.invokeLater(new Thread(){
			@Override
			public void run() {
				NamingServiceGUI ns = new NamingServiceGUI();
				ns.setVisible(true);
			}
		});
	}

}
